from flask import Flask
from flask import render_template
from flask import flash
import secrets

app = Flask(__name__)
app.secret_key = secrets.token_hex()


@app.route("/message")
def message():
    info = "这个是数据传递"
    flash("这个是闪现消息")
    return render_template("message.html", info=info)


def main():
    app.run(debug=True)


if __name__ == '__main__':
    main()
